package com.otitan.la.forest.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * 用户组织机构关系表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-15 10:34:18
 */
@Data
@ApiModel("用户组织机构关系表DTO")
public class UserOrgDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 组织机构ID
     */
    @ApiModelProperty(value = "组织机构ID", required = true)
    @NotBlank(message = "组织机构ID不能为空")
    private String orgId;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", required = true)
    @NotEmpty(message = "用户ID集合不能为空")
    private List<String> userIds;

}
